<!--
/**
* Author: gaohui
* Date: 2023-03-01 10:38
* Desc: TitleLine 标题行
*/
-->

<template>
  <div class="title-line">#{{ getTitle }}</div>
  <el-divider />
</template>

<script name="TitleLine" lang="ts" setup>
import { computed } from "vue";

const props = defineProps({
  title: {
    type: String,
    default: "",
  },
});

const getTitle = computed(() => {
  return props?.title || "貌似没有传入标题哦~";
});
</script>
<style lang="scss" scoped>
.title-line {
  font-size: 20px;
  font-weight: bold;
  color: #606266;
}
</style>
